package com.online.onlineshop;

import com.online.onlineshop.mapper.UserMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@MapperScan("com.online.onlineshop.mapper")
@SpringBootApplication
public class OnlineshopApplication {
//获取mapper实例
    @Autowired
    private UserMapper userMapper;

    public static void main(String[] args) {
        SpringApplication.run(OnlineshopApplication.class, args);
    }


}
